package org.zfes.snowier.zbss.xzy.biz.solution.model;
import org.zfes.snowier.core.data.IBaseModel;
public class AlgorithmConfigItem extends IBaseModel{

	private static final long serialVersionUID = 1L;
	
	public AlgorithmConfigItem() {}
	public AlgorithmConfigItem(Long id) {
		this.setId(id);
	}
	//<-------------------------------------------->

 
	@javax.validation.constraints.NotNull(message="所属算法不能为空")
	  private java.lang.Long algorithmId;
	  @javax.validation.constraints.NotNull(message="请选择父节点")
	  private java.lang.Long parentId;
	@javax.validation.constraints.NotBlank(message="配置编码不能为空")
	@javax.validation.constraints.NotNull(message="配置编码不能为空")
	@org.hibernate.validator.constraints.Length(min=0,max=100,message="配置编码长度不能大于100")
	  private java.lang.String code;
 
	@org.hibernate.validator.constraints.Length(min=0,max=100,message="配置名称长度不能大于100")
	  private java.lang.String name;
 
	@org.hibernate.validator.constraints.Length(min=0,max=100,message="备注长度不能大于100")
	  private java.lang.String remark;
	@javax.validation.constraints.NotNull(message="数据类型不能为空")
	  private java.lang.Byte dataType;
	  private java.lang.Byte status;
	  //配置模式_D#0.根节点，1文本填入，2 视频画线配置#
	  @javax.validation.constraints.NotNull(message="配置模式能为空")
	  private java.lang.Byte configMode;
	  private String treeCode;
 
	
	//<-------------------------------------------->
	public AlgorithmConfigItem setAlgorithmId(java.lang.Long algorithmId){
	 this.algorithmId=algorithmId;
	 return this;
	}
	public java.lang.Long getAlgorithmId(){
		return this.algorithmId;
	}
	public AlgorithmConfigItem setParentId(java.lang.Long parentId){
	 this.parentId=parentId;
	 return this;
	}
	public java.lang.Long getParentId(){
		return this.parentId;
	}
	public AlgorithmConfigItem setCode(java.lang.String code){
		this.code=code==null?null:code.trim();
	 return this;
	}
	public java.lang.String getCode(){
		return this.code;
	}
	public AlgorithmConfigItem setName(java.lang.String name){
		this.name=name==null?null:name.trim();
	 return this;
	}
	public java.lang.String getName(){
		return this.name;
	}
	public AlgorithmConfigItem setRemark(java.lang.String remark){
		this.remark=remark==null?null:remark.trim();
	 return this;
	}
	public java.lang.String getRemark(){
		return this.remark;
	}
	public AlgorithmConfigItem setDataType(java.lang.Byte dataType){
	 this.dataType=dataType;
	 return this;
	}
	public java.lang.Byte getDataType(){
		return this.dataType;
	}
	public AlgorithmConfigItem setStatus(java.lang.Byte status){
	 this.status=status;
	 return this;
	}
	public java.lang.Byte getStatus(){
		return this.status;
	}
	public AlgorithmConfigItem setConfigMode(java.lang.Byte configMode){
	 this.configMode=configMode;
	 return this;
	}
	public java.lang.Byte getConfigMode(){
		return this.configMode;
	}
	public String getTreeCode() {
		return treeCode;
	}
	public void setTreeCode(String treeCode) {
		this.treeCode = treeCode;
	}
	@Override
	public String toString() {
		return "AlgorithmConfigItem [algorithmId=" + algorithmId + ", parentId=" + parentId + ", code=" + code
				+ ", name=" + name + ", remark=" + remark + ", dataType=" + dataType + ", status=" + status
				+ ", configMode=" + configMode + ", treeCode=" + treeCode + "]";
	}

}
